{% extends "director/table.html" %}
{% load static %}
{% load jsonify %}

{% block extra_head %}
<script>
    extra_logic={
        methods:{
            export_data:function(){
                var items_str=""
                ex.each(this.selected,function(pk){
                    items_str+= pk+'-'
                })
                var op_str='download_page:items:'+items_str
                location='/_download/'+app+'?_op='+op_str

            },
            import_data:function(){
                alert('import')
            }
        }
    }
    table_logic.mixins=[table_fun,extra_logic]

</script>
{% endblock %}

{% block extra_btn %}
<button type="button" class="btn btn-default btn-sm" @click="export_data()">下载</button>
<button type="button" class="btn btn-default btn-sm" @click="import_data()">导入</button>
{% endblock %}